import { http } from "@/utils/http";

/** 获取合同详情接口 */
export function getAgreement(
  type: number,
  data?: object
): Promise<AgreementInfoData> {
  return http.request({
    url: `/agreement/getAgreement/${type}`,
    method: "post",
    data
  });
}
/** 获取合同详情 */
export interface AgreementInfoData {
  /** 内容 */
  content: string;
  /** 名称 */
  name: string;
  /** 类型 */
  type: number;
  /** 类型名称 */
  typeName: string;
}
